#!/usr/bin/env bash
rm -rf result.txt
rm -rf hydra.restore

ip=$1
port=$2
server="tomcat"



cmd="hydra -L ../dic/tomcat_user.txt -P ../dic/1k.txt -f -t 6 -o result.txt 'http-head://$ip:$port/manager/html'"
eval $cmd




# 目录隔离问题 脚本扔到api去了
cmd="sh ../api/result.sh $ip $port $server"
eval $cmd
